<?php

if (!defined('BASEPATH'))
    exit('No direct script access allowed');

class Hometown_model extends Base_Model {
    function __construct() {
        parent::__construct();
    }
    
    function get_current_home_town($str_ids=''){
        if(!empty($str_ids)){
    		$sql = "SELECT * FROM geo WHERE id IN ($str_ids)";
    		$arr_rs = $this->db->query($sql)->result_array();
                $arr_return = array();
                foreach($arr_rs as $row){
                    $arr_return[$row['id']] = $row;
                }
    		return $arr_return;
    	}else{
    		return FALSE;
    	}
    }

}

